<!DOCTYPE html>
<html lang="en">
<head>
	<meta charset="UTF-8">
	<title>给组件绑定原生事件</title>
	<script type="text/javascript" src="../js/vue.js"></script>
</head>
<body>
	<div id="app">
		<child @click.native="startClick"></child>
	</div>
	<script type="text/javascript">
		Vue.component('child', {
			template: '<div>Good</div>'
		})
		var vm = new Vue({
			el: '#app',
			methods: {
				startClick: function() {
					alert('Hello Vue.js')
				}
			}
		})
	</script>
</body>
</html>